/*
SteelNzb
Copyright (C) 2008  Wessel v. Staal

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

#define PRINTERROR(x) fprintf(stderr, "%s\n", x)
#define _CRT_SECURE_NO_WARNINGS
#define _CRTDBG_MAP_ALLOC

#if defined(WIN32) || defined(WINCE)
#pragma warning(disable : 4127) /* disable constant expression bullshit warning */
#define SLEEP(x) Sleep(x*1000)
#define CLOSESOCKET(x) closesocket(x)
#define socklen_t int 
#else
#define SLEEP(x) sleep(x);
#define CLOSESOCKET(x) close(x)
#endif

#ifdef WINCE
#define perror(x) fprintf(stderr, x);
#endif
